package com.dfbz.demo06_接口的其他特性;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {

        C c=new C();
        c.method();
    }

}

interface A {

    void method();
}

class B {
    public void method() {
        System.out.println("B");
    }
}

class C extends B implements A {


}
/*
interface A {
    // 接口中的成员变量默认都加上了public static final
    public static final int num=10;

    int num2 =100;
    void method();
}

interface B {

    void method();
}

// 接口允许多继承
interface C extends A,B{}
*/

